#include <bits/stdc++.h>

using namespace std;

const int N = 110;

int A[N][N];
int B[N][N];
int n, m;

int main()
{
    cin >> m >> n;
    for (int i = 1; i <= m; ++i)
    {
        A[i][0] = 2;
    }
    for (int j = 1; j <= n; ++j)
    {
        A[0][j] = 2;
    }
    for (int i = 1; i <= m; ++i)
    {
        for (int j = 1; j <= n; ++j)
        {
            cin >> B[i][j];
            if (A[0][j] != 2 || A[i][0] != 2)
            {  
            }
            else 
            {
            }
        }
    }
}